package guyubao.com.controller;

import guyubao.com.entity.RestBean;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/test")
public class TestController {
    @GetMapping("/hello")
    public String test(@RequestAttribute String id,@RequestAttribute String role){
        return RestBean.success("hello word "+id+":"+role).asJsonString();
    }
}
